DBlockDoorPg.widgets = {
	lvProject: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","orderBy":"asc:projectName","type":"com.servicelivedb.data.Project"}, {"onSuccess":"lvProjectSuccess"}, {
		liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Project","view":[
{"caption":"ProjectId","sortable":true,"dataIndex":"projectId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ProjectName","sortable":true,"dataIndex":"projectName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"Address","sortable":true,"dataIndex":"address","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"PrimaryPhone","sortable":true,"dataIndex":"primaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"SecondaryPhone","sortable":true,"dataIndex":"secondaryPhone","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"Email","sortable":true,"dataIndex":"email","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"Website","sortable":true,"dataIndex":"website","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"Description","sortable":true,"dataIndex":"description","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Image","sortable":true,"dataIndex":"image","type":"byte","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null}
]}, {}]
	}],
	blockLiveVariable1: ["wm.LiveVariable", {"orderBy":"asc:blockName","type":"com.servicelivedb.data.Block"}, {"onSuccess":"blockLiveVariable1Success"}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"lookupProjects.selectedItem.projectId","targetProperty":"filter.project.projectId"}, {}]
		}],
		liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Block","related":["project"],"view":[
{"caption":"BlockId","sortable":true,"dataIndex":"blockId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"BlockName","sortable":true,"dataIndex":"blockName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
	}],
	doorLiveVariable1: ["wm.LiveVariable", {"orderBy":"asc:doorName","type":"com.servicelivedb.data.Door"}, {}, {
		binding: ["wm.Binding", {}, {}, {
			wire: ["wm.Wire", {"expression":undefined,"source":"lookupBlocks.selectedItem","targetProperty":"filter.block"}, {}]
		}],
		liveView: ["wm.LiveView", {"dataType":"com.servicelivedb.data.Door","related":["block"],"view":[
{"caption":"DoorId","sortable":true,"dataIndex":"doorId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"DoorName","sortable":true,"dataIndex":"doorName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null}
]}, {}]
	}],
	ncBlockUpload: ["wm.NotificationCall", {"operation":"toast"}, {}, {
		input: ["wm.ServiceInput", {"type":"toastInputs"}, {}, {
			binding: ["wm.Binding", {}, {}, {
				wire: ["wm.Wire", {"expression":undefined,"source":"dojoFileUpload1.variable.error","targetProperty":"text"}, {}],
				wire1: ["wm.Wire", {"expression":"2000","targetProperty":"duration"}, {}],
				wire2: ["wm.Wire", {"expression":"\"Success\"","targetProperty":"cssClasses"}, {}],
				wire3: ["wm.Wire", {"expression":"\"center center\"","targetProperty":"dialogPosition"}, {}]
			}]
		}]
	}],
	blockDialog: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget","desktopHeight":"132px","height":"132px","mobileHeight":"132px","title":"block","width":"500px"}, {}, {
		containerWidget: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
			blockLiveForm1: ["wm.LiveForm", {"alwaysPopulateEditors":true,"fitToContentHeight":true,"height":"62px","horizontalAlign":"left","liveEditing":false,"margin":"4","verticalAlign":"top"}, {"onSuccess":"blockLivePanel1.popupLiveFormSuccess"}, {
				binding: ["wm.Binding", {}, {}, {
					wire: ["wm.Wire", {"expression":undefined,"source":"blockDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
				}],
				blockNameEditor1: ["wm.Text", {"caption":"BlockName","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"blockName","height":"26px","width":"100%"}, {}],
				lookup1: ["wm.Lookup", {"autoDataSet":false,"caption":"Project","captionSize":"140px","dataType":"com.servicelivedb.data.Project","desktopHeight":"26px","displayField":"projectName","formField":"project","height":"26px","width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						dataFieldWire: ["wm.Wire", {"source":"lookup1.liveVariable","targetProperty":"dataSet"}, {}],
						wire: ["wm.Wire", {"expression":undefined,"source":"lookupProjects.selectedItem","targetProperty":"defaultInsert"}, {}],
						wire1: ["wm.Wire", {"expression":undefined,"source":"lvProject","targetProperty":"dataSet"}, {}]
					}]
				}]
			}]
		}],
		buttonBar: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
			blockSaveButton: ["wm.Button", {"border":"1","caption":"Save","height":"100%"}, {"onclick":"blockLiveForm1.saveDataIfValid"}, {
				binding: ["wm.Binding", {}, {}, {
					wire: ["wm.Wire", {"source":"blockLiveForm1.invalid","targetId":null,"targetProperty":"disabled"}, {}]
				}]
			}],
			blockCancelButton: ["wm.Button", {"border":"1","caption":"Cancel","height":"100%"}, {"onclick":"blockDialog.hide","onclick1":"blockLiveForm1.cancelEdit"}]
		}]
	}],
	doorDialog: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget1","desktopHeight":"132px","height":"132px","mobileHeight":"132px","title":"door","width":"500px"}, {}, {
		containerWidget1: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
			doorLiveForm1: ["wm.LiveForm", {"alwaysPopulateEditors":true,"fitToContentHeight":true,"height":"62px","horizontalAlign":"left","liveEditing":false,"margin":"4","verticalAlign":"top"}, {"onSuccess":"doorLivePanel1.popupLiveFormSuccess"}, {
				binding: ["wm.Binding", {}, {}, {
					wire: ["wm.Wire", {"expression":undefined,"source":"doorDojoGrid.selectedItem","targetProperty":"dataSet"}, {}]
				}],
				doorNameEditor1: ["wm.Text", {"caption":"DoorName","captionSize":"140px","changeOnKey":true,"desktopHeight":"26px","emptyValue":"emptyString","formField":"doorName","height":"26px","width":"100%"}, {}],
				lookup2: ["wm.Lookup", {"autoDataSet":false,"caption":"Block","captionSize":"140px","dataType":"com.servicelivedb.data.Block","desktopHeight":"26px","displayField":"blockName","formField":"block","height":"26px","width":"100%"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						dataFieldWire: ["wm.Wire", {"source":"lookup2.liveVariable","targetProperty":"dataSet"}, {}],
						wire: ["wm.Wire", {"expression":undefined,"source":"blockLiveVariable1","targetProperty":"dataSet"}, {}],
						wire1: ["wm.Wire", {"expression":undefined,"source":"lookupBlocks.selectedItem","targetProperty":"defaultInsert"}, {}]
					}]
				}]
			}]
		}],
		buttonBar1: ["wm.Panel", {"_classes":{"domNode":["dialogfooter"]},"border":"1,0,0,0","desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
			doorSaveButton: ["wm.Button", {"border":"1","caption":"Save","height":"100%"}, {"onclick":"doorLiveForm1.saveDataIfValid"}, {
				binding: ["wm.Binding", {}, {}, {
					wire: ["wm.Wire", {"source":"doorLiveForm1.invalid","targetId":null,"targetProperty":"disabled"}, {}]
				}]
			}],
			doorCancelButton: ["wm.Button", {"border":"1","caption":"Cancel","height":"100%"}, {"onclick":"doorDialog.hide","onclick1":"doorLiveForm1.cancelEdit"}]
		}]
	}],
	layoutBox1: ["wm.Layout", {"horizontalAlign":"left","verticalAlign":"top"}, {}, {
		panel1: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
			panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
				blockLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"source":"blockDialog","targetId":null,"targetProperty":"dialog"}, {}],
						wire1: ["wm.Wire", {"source":"blockLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
						wire2: ["wm.Wire", {"source":"blockDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
						wire3: ["wm.Wire", {"source":"blockSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
					}],
					panel4: ["wm.Panel", {"desktopHeight":"30px","enableTouchHeight":true,"height":"30px","horizontalAlign":"left","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
						lookupProjects: ["wm.Lookup", {"caption":"Projects","captionSize":"70px","dataType":"com.servicelivedb.data.Project","dataValue":undefined,"desktopHeight":"30px","displayField":"projectName","displayValue":"","height":"30px","width":"100%"}, {"onchange":"blockLiveVariable1"}, {
							binding: ["wm.Binding", {}, {}, {
								wire: ["wm.Wire", {"expression":undefined,"source":"lvProject","targetProperty":"dataSet"}, {}]
							}]
						}],
						button1: ["wm.Button", {"border":"1","caption":"Refresh"}, {"onclick":"lvProject","onclick1":"blockLiveVariable1","onclick2":"doorLiveVariable1"}]
					}],
					blockDojoGrid: ["wm.DojoGrid", {"columns":[
{"show":false,"field":"blockId","title":"BlockId","width":"100%","align":"right","formatFunc":"","mobileColumn":false},
{"show":true,"field":"blockName","title":"BlockName","width":"100%","align":"center","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"\"<div class='MobileRowTitle'>\" +\n\"BlockName: \" + ${blockName} +\n\"</div>\"\n\n","mobileColumn":true}
],"dsType":"com.servicelivedb.data.Block","height":"100%","localizationStructure":{},"minDesktopHeight":60}, {"onCellDblClick":"blockLivePanel1.popupLivePanelEdit"}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"blockLiveVariable1","targetProperty":"dataSet"}, {}]
						}]
					}],
					blockGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
						blockNewButton: ["wm.Button", {"border":"1","caption":"New"}, {"onclick":"blockLivePanel1.popupLivePanelInsert"}],
						blockUpdateButton: ["wm.Button", {"border":"1","caption":"Update"}, {"onclick":"blockLivePanel1.popupLivePanelEdit"}, {
							binding: ["wm.Binding", {}, {}, {
								wire: ["wm.Wire", {"source":"blockDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
							}]
						}],
						blockDeleteButton: ["wm.Button", {"border":"1","caption":"Delete"}, {"onclick":"blockLiveForm1.deleteData"}, {
							binding: ["wm.Binding", {}, {}, {
								wire: ["wm.Wire", {"source":"blockDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
							}]
						}]
					}]
				}]
			}],
			panel3: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
				doorLivePanel1: ["wm.LivePanel", {"autoScroll":false,"horizontalAlign":"left","verticalAlign":"top"}, {}, {
					binding: ["wm.Binding", {}, {}, {
						wire: ["wm.Wire", {"source":"doorDialog","targetId":null,"targetProperty":"dialog"}, {}],
						wire1: ["wm.Wire", {"source":"doorLiveForm1","targetId":null,"targetProperty":"liveForm"}, {}],
						wire2: ["wm.Wire", {"source":"doorDojoGrid","targetId":null,"targetProperty":"dataGrid"}, {}],
						wire3: ["wm.Wire", {"source":"doorSaveButton","targetId":null,"targetProperty":"saveButton"}, {}]
					}],
					dojoFileUpload1: ["wm.DojoFileUpload", {"operation":"uploadProjectBlockDoors"}, {"onSuccess":"ncBlockUpload"}, {
						input: ["wm.ServiceInput", {"type":"uploadProjectBlockDoorsInputs"}, {}, {
							binding: ["wm.Binding", {}, {}, {
								wire: ["wm.Wire", {"expression":undefined,"source":"lookupProjects.selectedItem.projectId","targetProperty":"projectId"}, {}]
							}]
						}]
					}],
					lookupBlocks: ["wm.Lookup", {"caption":"Block","captionSize":"60px","dataType":"com.servicelivedb.data.Block","dataValue":undefined,"desktopHeight":"30px","displayField":"blockName","displayValue":"","height":"30px","width":"187px"}, {"onchange":"doorLiveVariable1"}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"blockLiveVariable1","targetProperty":"dataSet"}, {}]
						}]
					}],
					doorDojoGrid: ["wm.DojoGrid", {"columns":[
{"show":false,"field":"doorId","title":"DoorId","width":"80px","align":"right","formatFunc":"","mobileColumn":false},
{"show":true,"field":"doorName","title":"DoorName","width":"100%","align":"center","formatFunc":"","editorProps":{"restrictValues":true},"mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"\"<div class='MobileRowTitle'>\" +\n\"DoorName: \" + ${doorName} +\n\"</div>\"\n\n","mobileColumn":true}
],"dsType":"com.servicelivedb.data.Door","height":"100%","minDesktopHeight":60}, {"onCellDblClick":"doorLivePanel1.popupLivePanelEdit"}, {
						binding: ["wm.Binding", {}, {}, {
							wire: ["wm.Wire", {"expression":undefined,"source":"doorLiveVariable1","targetProperty":"dataSet"}, {}]
						}]
					}],
					doorGridButtonPanel: ["wm.Panel", {"desktopHeight":"32px","enableTouchHeight":true,"height":"32px","horizontalAlign":"right","layoutKind":"left-to-right","mobileHeight":"40px","verticalAlign":"top","width":"100%"}, {}, {
						doorNewButton: ["wm.Button", {"border":"1","caption":"New"}, {"onclick":"doorLivePanel1.popupLivePanelInsert"}],
						doorUpdateButton: ["wm.Button", {"border":"1","caption":"Update"}, {"onclick":"doorLivePanel1.popupLivePanelEdit"}, {
							binding: ["wm.Binding", {}, {}, {
								wire: ["wm.Wire", {"source":"doorDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
							}]
						}],
						doorDeleteButton: ["wm.Button", {"border":"1","caption":"Delete"}, {"onclick":"doorLiveForm1.deleteData"}, {
							binding: ["wm.Binding", {}, {}, {
								wire: ["wm.Wire", {"source":"doorDojoGrid.emptySelection","targetId":null,"targetProperty":"disabled"}, {}]
							}]
						}]
					}]
				}]
			}]
		}]
	}]
}